package com.phone.entity;

import com.phone.servlet.BaseServlet;

/**
 * Created by tisen on 2017/8/2.
 */
public class Result<T> {
    protected String result;
    protected String reason;
//    protected String token;
    protected T object;

    public Result() {
        this.result = BaseServlet.ERROR;
    }

    public Result(String result, String reason, T object) {
        this.result = result;
        this.reason = reason;
        this.object = object;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public T getObject() {
        return object;
    }

    public void setObject(T object) {
        this.object = object;
    }
}